<?php
/**
 * Created by PhpStorm.
 * User: zhangyi
 * Date: 17/3/6
 * Time: 下午4:24
 */
use yii\widgets\ActiveForm;
use yii\helpers\Html;


?>
<div id="page-wrapper" style="min-height: 500px;">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header"><a href="javascript:history.back();" class="btn btn-primary">返回</a></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="col-lg-4">

                <?php $form = ActiveForm::begin(['enableClientValidation'=>true]) ?>

                <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>
                <?= $form->field($model, 'nickname')->textInput(['maxlength' => true]) ?>

                <?= $form->field($model, 'resetpassword')->passwordInput(['placeholder'=>'不修改请留空']) ?>


                <div class="form-group">
                    <?= Html::submitButton($model->isNewRecord ? '保存' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
                </div>

                <?php ActiveForm::end() ?>
            </div>
        </div>
    </div>
</div>
